#define  _CRT_SECURE_NO_WARNINGS   1

#include "DList.h"

void testDlist1()
{
	ListNode* plist = ListInit();
	DLlistPushBack(plist, 1);
	DLlistPushBack(plist, 2);
	DLlistPushBack(plist, 3);
	DLlistPushBack(plist, 4);

	
	ListNode* ret = DListFind(plist, 2); 
	//ret->data = (ret->data) * 2;
	DListInset(ret, 40);
	DListErase(plist, ret);

	DLlistPopBack(plist);

	DlistPrint(plist);

}
void testDlist2()
{
	ListNode* plist = ListInit();
	DLlistPushFront(plist, 1);
	DLlistPushFront(plist, 2);
	DLlistPushFront(plist, 3);
	DLlistPushFront(plist, 4);
	DLlistPushFront(plist, 5);

	DLlistPopFront(plist);
	DLlistPopFront(plist);



	DlistPrint(plist);

}


int main()
{
	testDlist1();
	//testDlist2();


	return 0;
}